import javax.swing.table.DefaultTableModel;


public class ResultsModel extends DefaultTableModel
{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public ResultsModel(boolean results[])
	{
		Object data[][] = new Object[results.length][3];
		
		for(int i = 0; i < results.length; ++i)
		{
			data[i][0] = Integer.toString(i + 1);
			data[i][1] = results[i] ? new String("Correct!") : new String("Wrong!");
			data[i][2] = new String("View");
		}
		
		setDataVector(data,  new Object[]{"#", "Result", "Click to view"});
	}

}
